package xlj.lib.android.base.component;

import android.app.Activity;

import java.util.Stack;

public class ActivityStack {
    private static Stack<Activity> activityStack = new Stack<>();

    public static void pushActtivty(Activity activity) {
        activityStack.push(activity);
    }

    public static void popActivity(Activity activity) {
        activityStack.remove(activity);
    }

    public static Activity topActivity() {
        return activityStack.firstElement();
    }
}
